<div for="order">
		<div class="panel panel-default">
		  <!-- Default panel contents -->
		  <div class="panel-heading"><b>订单信息</b></div>
	
		
		  <!-- List group -->
		  <ul class="list-group">
			<li class="list-group-item">订单号: <?php echo $dt['order']->ordersn; ?></li>
			<li class="list-group-item">流水号: <?php echo $dt['order']->order_sn; ?></li>
			<li class="list-group-item">购物网站：<?php echo $dt['site']->sitename; ?></li>
			<li class="list-group-item">总金额: <?php echo $dt['order']->total . $dt['order']->currency; ?></li>
			<li class="list-group-item">订单状态：<?php echo $dt['order']->status; ?>
			<form action="/sdksystem/updatestatus" method="post">
				<INPUT type="hidden" name="orderid" value="<?php echo  $dt['order']->orderid;?>"/>
				<SELECT name="status">
                                    <option value ="unpaid">unpaid</option>
				<option value ="pending">pending</option>
                                <option value ="paid">paid</option>
				<option value ="Success">Success</option>
				<option value ="declined">declined</option>
                                <option value ="test">test</option>
				</SELECT>
				<INPUT type="submit" value="提交"/>  
			</form>
			</li>
			<li class="list-group-item">货运状态: <?php echo $dt['order']->shipstatus==1?'<font style="color:green;">已发货</font>&nbsp;&nbsp;单号：'.$dt['order']->shipno:'<font style="color:red;">未发货</font>'; ?>
				<form action="/sdksystem/updateshipstatus" method="post">
				<INPUT type="hidden" name="orderid" value="<?php echo  $dt['order']->orderid;?>"/>
				<SELECT name="shipstatus">
				<option value ="0">未发货</option>
				<option value ="1">已发货</option>
				</SELECT>
                                &nbsp;&nbsp;单号：<input name="shipno" type="text" value=""/>
				<INPUT type="submit" value="提交"/>  
			</form></li>
			<li class="list-group-item">成本: <?php echo $dt['order']->chengben; ?>RMB
				<form action="/sdksystem/updatechengben" method="post">
				<INPUT type="hidden" name="orderid" value="<?php echo  $dt['order']->orderid;?>"/>
				<input type="text" name="chengben" value=""/>
				<INPUT type="submit" value="提交"/>  
			</form></li>
			<li class="list-group-item">备注: 
				<form action="/sdksystem/updatebeizhu" method="post">
				<INPUT type="hidden" name="orderid" value="<?php echo  $dt['order']->orderid;?>"/>
				<TEXTAREA name="beizhu" rows="5" cols="60"><?php echo $dt['order']->beizhu; ?></TEXTAREA>
				<INPUT type="submit" value="提交"/>  
			</form></li>
			<li class="list-group-item">使用物流：<?php echo $dt['order']->shiptype; ?></li>
		  </ul>
		</div>
</div>

<div for="shipping">
	<div class="panel panel-default">
		  <!-- Default panel contents -->
		  <div class="panel-heading"><b>购物信息</b></div>
		  <div class="panel-body">
    			<p>Email: <?php echo $dt['member']->email; ?></p>
				<!-- List group -->
		  		<?php $saddr = unserialize($dt['order']->shipaddr); ?>
				
			  <ul class="list-group" style="width:50%; float:left;">
			  	<li class="list-group-item"><strong>送货地址:</strong></li>
			  	<?php foreach($saddr as $k=>$v):?>
					<li class="list-group-item"><?php echo $k; ?>: <?php echo $v; ?></li>
				<?php endforeach ?>
			  </ul>
		  
				<?php $saddr = unserialize($dt['order']->billaddr); ?>
			  <ul class="list-group" style="width:50%; float:left;">
				  <li class="list-group-item"><strong>账单地址:</strong></li>
				<?php foreach($saddr as $k=>$v):?>
					<li class="list-group-item"><?php echo $k; ?>: <?php echo $v; ?></li>
				<?php endforeach ?>
			  </ul>


  		</div>
		  
	</div>
</div>

<div for="product">
	<div class="panel panel-default">
		  <!-- Default panel contents -->
		  <div class="panel-heading"><b>产品信息</b></div>
	
		
		  <!-- List group -->
		  <table class="table">
		  	<tr><th>产品图片</th><th>产品名称</th><th>SKU</th><th>价格</th><th>数量</th></tr>
		  	<?php foreach($dt['product'] as $v): ?>
				<tr><td><img src="<?php echo $v->img?>"  width="32" height="32"/></td>
				<td><a href="http://www.ztproduct.com/<?php echo $v->product_url; ?>"><?php echo $v->product_name; ?></a></td><td><?php echo $v->sku; ?></td><td><?php echo $v->price; ?></td><td><?php echo $v->qty; ?></td></tr>
			<?php endforeach ?>
		  </table>
		</div>
</div>